/*
package yz.com.javautil.test;

import com.googlecode.aviator.AviatorEvaluator;
import org.apache.commons.lang3.StringUtils;

import java.util.Map;

*/
/**
 * @author liuxk
 * @since 2021-06-18
 * SQL表达式解析工具
 *//*

public class ParseSqlUtils {

    public static String parseSql(String sqlTemplate, Map<String, Object> env) {
        if (StringUtils.isBlank(sqlTemplate)) {
            return "";
        }
        sqlTemplate = sqlTemplate.replace("\n", " ").replace("\r", " ");
        if (!AviatorEvaluator.containsFunction("parseSql")) {
            AviatorEvaluator.addFunction(new ParseSqlFunction());
        }

        String querySql = (String) AviatorEvaluator.execute(sqlTemplate, env);
        querySql = querySql.replace("[", "'").replace("]", "'");
        return querySql;
    }
}
*/
